<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>商户归属详情</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href="<s:url value="/css/common.css"/>"/>
    <!-- 当前页面样式 END -->
    <script type="text/javascript" src="<c:url value="/js/jquery-1.3.2.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
	<script type="text/javascript" src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type="text/javascript">
	//查询结算信息
		function queryCheck(){
				var mchtCd = $.trim($("#merNo").val());
				if(!mchtCd){
					alert("商户号为空");
					return false;
				}
				
				$("#queryUserForm").attr("action","<%=basePath%>/mer/queryMerBelongList.ct")
				$("#queryUserForm").submit();
				$("#queryBtnId").attr("disabled","true");
						
		}
	
		
	</script>
</head>
<body>
<s:form id="queryUserForm" action="" method="post" theme="simple">
<table class="tb">
    <tbody>
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
        </tr>

        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3">所属代理商查询</div></td>
        </tr>


        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal"><input type="text" id="merNo" name="searchCondition.merNo" value="<c:if test='${searchCondition.merNo != null }'>${searchCondition.merNo }</c:if>" /></label>
            </td>
        </tr>


        <tr class="tb-line">
            <td class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
                    <input id="queryBtnId" type="button" value="查询" onclick="return queryCheck();"/>
                </label>
            </td>
        </tr>
        <s:if test="#request.searchRsList != null && #request.searchRsList.size>0">
			<tr class="tb-line">
				<td class="tb-td paging"  align="left" colspan="4"> <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/mer/queryMerBelongList.ct?currentPage=" />

				</td>
			</tr>
		</s:if>
    </tbody>
</table>

<div class="big-tb">
    <table class="tb" style="width: 100%;">
        <thead>
            <tr class="tb-line">
                <th class="tb-th" colspan="15">所属代理商信息列表</th>
            </tr>
            <tr class="tb-line bg-gray">
                <th class="tb-th">商户号</th>
                <th class="tb-th">商户名称</th>
                <th class="tb-th">代理商名称</th>
                <th class="tb-th">所属机构</th>
                <th class="tb-th">代理商联系电话</th>
            </tr>
        </thead>
        <tbody>
			<s:iterator value="#request.searchRsList" status="stat" id="mer">
				<tr  class="tb-line"  >
					<td class="tb-td">
						<s:property value="#mer.merno"/>
					</td>
					<td class="tb-td">
						<s:property value="#mer.merName"/>
					</td>
					<td class="tb-td">
						<s:property value="#mer.agentName"/>
					</td>
					<td class="tb-td">
						<s:property value="#mer.insNo"/>
					</td>
					<td class="tb-td">
						<s:property value="#mer.agentTel"/>
					</td>
				</tr>
			</s:iterator>
        </tbody>
    </table>
</div>
</s:form>
</body>
</html>